//
//  ZYPurchaseDelegate.h
//  ZYPurchase
//
//  Created by wu on 2020/8/6.
//  Copyright © 2020 wu. All rights reserved.
//

#import <Foundation/Foundation.h>

@class ZYPurchaseSaleman;
@class ZYPurchaseTransactionModel;
@class ZYPurchaseOrderModel;

NS_ASSUME_NONNULL_BEGIN

@protocol ZYPurchaseTransactionDelegate <NSObject>

@optional
// 交易状态更改
- (void)transactionStatusChanged:(ZYPurchaseTransactionModel *)transaction;

/// 内购 restore 数据查询
- (void)restoreStatusAccessedChanged:(NSInteger)status;

@end

@protocol ZYPurchaseOrderDelegate <NSObject>


@optional
// 创建订单成功
- (void)createOrderSuccess:(ZYPurchaseOrderModel *)order;

// 创建订单失败
- (void)createOrderFailWithError:(id)error;

@end

NS_ASSUME_NONNULL_END
